package com.len.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.mybatisflex.core.keygen.KeyGenerators;
import lombok.Data;

import java.io.Serializable;

@Data
@Table(value = "sys_role_menu")
public class SysRoleMenu implements Serializable {

    @Id(keyType = KeyType.Generator,value = KeyGenerators.snowFlakeId)
    private String roleId;

    @Id(keyType = KeyType.Generator,value = KeyGenerators.snowFlakeId)
    private String menuId;
}